﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ChoViet.Model.SettingsDefault>" %>
<%@ Import Namespace="ChoViet.Lib.Helpers" %>
<%@ Import Namespace="ChoViet.CMS.Controllers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Quản lý thiết lập mặc định
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Header" runat="server">
   Chi tiết thiết lập mặc định
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Message" runat="server">
    <%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Toolbar" runat="server">
    <%= Html.Toolbar("Quay về", "/SettingsDefault", "back")%>
        <%= Html.Toolbar("Thêm mới", "/SettingsDefault/Create/", "new")%>
	    <%= Html.Toolbar("Sửa", string.Format("/SettingsDefault/{0}", Model.Value), "edit")%>
        <%= Html.Toolbar("Xóa", string.Format("/SettingsDefault/{0}", Model.Value), "delete")%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%if (ViewData["MessageInfo"] == null)
      { %>
	<fieldset>
		<legend>Chi tiết thiế lập mặc định</legend>
		<table class="admintable">
		<tbody>
			<tr>
				<td class="key">
					Tên key:
				</td>
				<td>
					<%=Html.Encode(Model.Value) %>
				</td>
			</tr>
			<tr>
				<td class="key">
					Giá trị
				</td>
				<td>
					<%=Html.Encode(Model.Text) %>
				</td>
			</tr>
			<tr>
			    <td class="key">Mô tả</td>
			    <td><%=Model.Description %></td>
			</tr>
			</tbody>
		</table>
	</fieldset>
    <% } %>
</asp:Content>
